<?php $this->load->view('vheader')?>
<?php
   $alert1 = $this->session->flashdata('alert1');
   if(!empty($alert1)){
?>
<div class="alert alert-danger">
   <button type="button" class="close" data-dismiss="alert">
   <i class="icon-remove"></i>
   </button>
   <strong>
   <i class="icon-remove"></i>
   Ups!
   </strong>
   <?php echo $alert1; ?>
   <br />
</div>
<?php
   }
   
   $alert2 = $this->session->flashdata('alert2');
   if(!empty($alert2)){
   ?>                                
<div class="alert alert-block alert-success">
   <button type="button" class="close" data-dismiss="alert">
   <i class="icon-remove"></i>
   </button>
   <p>
      <strong>
      <i class="icon-ok"></i>
      Selamat!
      </strong>
      <?php echo $alert2; ?>
   </p>
   <p>
   </p>
</div>
<?php
   }
   
   $attribut = array ( 'class' => 'form-horizontal', 'role' => 'form');
   echo form_open('gantipassword/change',$attribut);
   ?>
<div class="form-group">
   <label class="col-sm-3 control-label no-padding-right" for="form-field-6">Username</label>
   <div class="col-sm-9">
      <input value="<?php echo $this->session->userdata('username');?>" data-rel="tooltip" 
         type="text" id="form-field-6" title="Username" data-placement="bottom" readonly name="username" />
   </div>
</div>
<div class="form-group">
   <label class="col-sm-3 control-label no-padding-right" for="form-field-6">Password Lama</label>
   <div class="col-sm-9">
      <input data-rel="tooltip" type="password" id="form-field-6" 
         title="Password Lama" data-placement="bottom" name="pwd_lama"/>
   </div>
</div>
<div class="form-group">
   <label class="col-sm-3 control-label no-padding-right" for="form-field-6">Password Baru</label>
   <div class="col-sm-9">
      <input data-rel="tooltip" type="password" id="form-field-6" 
         title="Password Lama" data-placement="bottom" name="pwd_baru"/>
   </div>
</div>
<div class="form-group">
   <label class="col-sm-3 control-label no-padding-right" for="form-field-6">Password Baru Confirm</label>
   <div class="col-sm-9">
      <input data-rel="tooltip" type="password" id="form-field-6" 
         title="Password Lama" data-placement="bottom" name="pwd_baru2"/>
   </div>
</div>
<div class="clearfix form-actions">
   <div class="col-md-offset-3 col-md-9">
      <button class="btn btn-info" type="submit" name="submit">
      <i class="icon-ok bigger-110"></i>
      Submit
      </button>
      &nbsp; &nbsp; &nbsp;
      <button class="btn" type="reset" name="batal">
      <i class="icon-undo bigger-110"></i>
      Reset
      </button>
   </div>
</div>
<?php echo form_close(); ?>
<!-- PAGE CONTENT ENDS -->
<?php $this->load->view('vfooter')?>